package com.ccit.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户柜台消费订单")
@Document("AreaOrder")
@TableName("tb_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "订单生成时间")
    @TableField("time")
    private Date time;

    @ApiModelProperty(value = "是否为会员消费(1为是会员,0为非会员)")
    @TableField("is_member")
    private Integer isMember;

    @ApiModelProperty(value = "消费者手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "消费后进入场所")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "消费价格")
    @TableField("price")
    private Double price;

    @TableField("reservation")
    private String reservation;
}
